package org.inote.pojo.tablePojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.io.Serializable;

/**
 * 问题(Issue)实体类
 *
 * @author makejava
 * @since 2021-12-26 23:31:51
 */
public class Issue implements Serializable {
    private static final long serialVersionUID = 855383162718135203L;
    /**
     * 问题号
     */
    private Integer issueId;
    /**
     * 用户号;外键
     */
    private Integer userId;
    /**
     * 问题标题
     */
    private String issueTitle;
    /**
     * 问题概要
     */
    private String issueBrief;
    /**
     * 问题正文
     */
    private String issueText;
    /**
     * 问题发布时间
     */
    //DateTimeFormat springMVC接受这个对象的数据将日期改为一下的格式
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    // 不论是对象转json字符串,还是json字符在传对象 日期格式都要以下方的格式处理
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date issueDate;
    /**
     * 专业号;外键
     */
    private Integer specialtyId;


    public Integer getIssueId() {
        return issueId;
    }

    public void setIssueId(Integer issueId) {
        this.issueId = issueId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getIssueTitle() {
        return issueTitle;
    }

    public void setIssueTitle(String issueTitle) {
        this.issueTitle = issueTitle;
    }

    public String getIssueBrief() {
        return issueBrief;
    }

    public void setIssueBrief(String issueBrief) {
        this.issueBrief = issueBrief;
    }

    public String getIssueText() {
        return issueText;
    }

    public void setIssueText(String issueText) {
        this.issueText = issueText;
    }

    public Date getIssueDate() {
        return issueDate;
    }

    public void setIssueDate(Date issueDate) {
        this.issueDate = issueDate;
    }

    public Integer getSpecialtyId() {
        return specialtyId;
    }

    public void setSpecialtyId(Integer specialtyId) {
        this.specialtyId = specialtyId;
    }

}

